package com.sheep.jucdemo.part1.part1_1;

public class ThreadTest extends Thread {

    @Override
    public void run() {
        System.out.println("test");
        System.out.println(Thread.currentThread().getName());
        System.out.println("name：" +  this.getName());

    }

    public static void main(String[] args) {
        ThreadTest threadTest = new ThreadTest();
        threadTest.start();
    }
}
